import { ColumnProps } from '~/library/components/ProTable/interface'
import { Information } from '~/src/api/interface/information'

// 表格配置项
export const supplierAreaColumns: ColumnProps<Information.SupplierAreaList>[] = [
  { type: 'selection', width: 80 },
  { type: 'index', label: '序号', width: 80 },
  { sortable: true, prop: 'areaCode', label: '供应商区域编码', minWidth: 140, align: 'left', search: { el: 'input' } },
  { sortable: true, prop: 'name', label: '供应商区域名称', minWidth: 140, align: 'left', search: { el: 'input' } },
  { sortable: true, prop: 'totalSupplier', label: '区域供应商数量', minWidth: 140, align: 'left' },
  { sortable: true, prop: 'createTime', label: '创建时间', minWidth: 164, align: 'left' },
  { prop: 'operation', label: '操作', width: 220, fixed: 'right' },
]
